package com.springdatecrm.web.service;

import com.springdatecrm.web.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {

    public User login(String usrName, String usrPassword);

    public Page<User> findUsers(String usrName, Long usrId, Pageable pageable);

    public List<User> findAllUsers(String usrName, Long roleId);

    public void save(User user);

    public User getUser(Long usrId);

    public void deleteUser(Long usrId);

    public User getUserByUserName(String usrName);
}